package com.gwd.task.services;

import com.gwd.task.model.AttachmentDTO;

import java.util.List;

/**
 * @author zhiyongming
 * @date 2020/12/14 10:53
 */
public interface AttachmentServer {
    //按代码查询
    List<AttachmentDTO> findByCode(String code);
    //按代码查询
    List<AttachmentDTO> findByCodeList(List<String> codes);
    //按文件名查询
    List<AttachmentDTO> findByNameList(List<String> names);
    //通过文件md5码查询
    AttachmentDTO findByFileName(String fileCode);
    //上传文件时候保存用
    void save(AttachmentDTO dto);
    //跟新对应code
    void bindCode(List<AttachmentDTO> dtoList, String code);;
    //跟新对应code
    void bindCode(String tempCode, String code);
    //跟新对应code
    void self(String tempCode, String code);
    //删除
    void remove(String fileName);
}
